.draft.card.is-compact {
	padding: 16px;
	text-align: left;

	@include breakpoint( ">660px" ) {
		&:hover {
			.draft__excerpt {
				display: block;
			}
		}
	}
}

.draft__title {
	display: inline-block;
	font-family: $serif;
	font-weight: 400;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	width: 95%;
	vertical-align: bottom;
	position: relative;

	.has-all-actions & {
		width: 85%;
	}

	a {
		color: $gray-dark;
		text-decoration: none;
	}

	&::after {
		@include long-content-fade( $size: 20% );
	}
}

.draft__excerpt {
	font-family: $serif;
	font-size: 12px;
	font-weight: 400;
	display: none;
	overflow: hidden;
	line-height: 1.3;
	position: absolute;
	left: 0;
	right: 28px;
	top: 0;
	bottom: 0;
	padding: 12px 16px 0;
	background: $white;
	z-index: 20;
	border-bottom: 10px solid $white;

	a {
		color: $gray-text;
		text-decoration: none;
	}

	&::after {
		@include long-content-fade( $size: 20% );
	}
}

// used on multisite screen to show
// which site a draft belongs to
.draft .site-icon {
	position: absolute;
	right: 16px;
	top: 13px;
}

.draft__untitled {
	color: $gray;
	font-style: italic;
	font-weight: 400;
}

// Images
.draft__featured-image {
	display: block;
	position: absolute;
		left: 0;
		top: 0;

	// set image thumbnail
	height: 56px;
	width: 75px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.draft__image {
	max-width: 100%;
}

// pushes content to the right when the draft
// has an image to display
.draft.has-image {
	.draft__title {
		margin-left: 70px;
		max-width: 65%;
	}

	.draft__excerpt {
		left: 76px;
	}

	&.has-all-actions {
		.draft__title {
			max-width: 56%
		}
	}

	.draft__featured-image {
		cursor: zoom-in;
	}

	@include breakpoint( "<660px" ) {
		.draft__actions {
			margin-left: 80px;
		}
	}

	// when the image is expanded to its full dimensions
	&.is-image-expanded {
		.draft__title {
			margin-left: 0;
			max-width: 85%;
		}

		&:hover .draft__excerpt {
			display: none;
		}

		.draft__featured-image {
			cursor: zoom-out;
			border-top: 1px solid lighten( $gray, 30% );
			margin-top: 16px;
			padding-top: 16px;
			height: auto;
			width: 100%;
			position: static;
		}
	}
}

.draft__actions {
	display: block;

	@include breakpoint( ">480px" ) {
		display: inline-block;
		float: right;
	}
}

.draft__all-actions {
	display: inline-block;
	width: 10%;
}

.draft__actions-toggle {
	color: $gray;
	cursor: pointer;
	font-size: 24px;
	margin-left: 10px;
}

.draft .post-relative-time-status {
	display: inline-block;
	margin: 0;
	color: $gray;

	.post-relative-time-status__time {
		line-height: 1;
		font-size: 10px;
		text-transform: uppercase;
	}

	.is-pending {
		display: none;
	}
}

.draft {
	.gridicons-trash {
		cursor: pointer;
		fill: $gray;
		opacity: 0;
		padding: 4px 8px;
		position: absolute;
			right: 4px;
			top: 14px;
		transition: opacity 200ms;

		&:hover {
			fill: $alert-red;
		}
	}

	&:hover .gridicons-trash,
	&.is-touch .gridicons-trash {
		opacity: 1;
	}
}


.draft.is-placeholder {
	.draft__title,
	.time-text {
		animation: pulse-light 0.8s ease-in-out infinite;
	}

	.draft__title {
		background: lighten( $gray, 20% );
		color: transparent;
		height: 16px;
		width: 30%;
		&::after {
			display: none;
		}
	}

	.time-text {
		background: lighten( $gray, 20% );
		height: 10px;
		width: 100px;
	}
}

.draft .notice {
	margin: -16px -24px 16px;
}

.draft__trash-item.popover__menu-item {
	&:hover,
	&:focus {
		background-color: $alert-red;
	}
}

.draft.is-trashed {
	background: $gray-light;

	.draft__title a {
		color: lighten( $gray, 10% );
	}

	.draft__title {
		width: 100%;
		&.has-image {
			width: 85%;
		}
		&::after {
			@include long-content-fade( $size: 20%, $color: $gray-light );
		}
	}

	.draft__actions-toggle {
		display: none;
	}

	.draft__all-actions {
		display: none;
	}

	.gridicons-trash {
		display: none;
	}

	.draft__restore {
		background: $gray-light;
	}
}

.draft__restore {
	cursor: pointer;
	position: absolute;
		right: 16px;
		top: 0;
		bottom: 0;
	color: $gray;

	.gridicon {
		margin-right: 4px;
		vertical-align: bottom;
	}
}

.draft.is-restoring {
	background: $white;
	animation: pulse-light 0.8s ease-in-out infinite;

	.draft__restore {
		background: transparent;
	}

	.draft__title::after {
		display: none;
	}
}

.draft.is-selected {
	box-shadow: 0 0 0 1px transparentize( lighten( $gray, 20% ), .5 ),
		0 1px 2px lighten( $gray, 30% ), inset -4px 0 0 $blue-medium;
}

.draft__pending-label {
	background: $alert-yellow;
	border-radius: 2px;
	color: white;
	font-family: $sans;
	font-weight: 400;
	font-size: 11px;
	margin-right: 8px;
	padding: 2px 8px;
	text-transform: uppercase;
}

.draft .gravatar {
	margin-right: 8px;
	vertical-align: middle;
}
